<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<jsp:include page="/common/header.jsp"/>
<body>
<div id="wrapper">
    <jsp:include page="/left.jsp"/>
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <jsp:include page="/top.jsp"/>
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <%--<h2>版本管理</h2>--%>
                <ol class="breadcrumb">
                    <li>
                        <a href="../../main.jsp">主页</a>
                    </li>
                    <li>
                        <strong>版本管理</strong>
                    </li>
                </ol>
            </div>
        </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <div class="row">
                                <form id="client_list_form" method="post">
                                    <div class="col-sm-2">
                                        <select name="platformType" class="form-control">
                                            <option value="" selected>
                                                全部
                                            </option>
                                            <option value="1">
                                                Android
                                            </option>
                                            <option value="2">
                                                PC
                                            </option>
                                        </select>
                                    </div>
                                    <div class="col-sm-2">
                                        <select name="userType" class="form-control">
                                            <option value="" selected>
                                                全部
                                            </option>
                                            <option value="1">
                                                车主版
                                            </option>
                                            <option value="2">
                                                企业版
                                            </option>
                                        </select>
                                    </div>
                                    <div class="col-sm-2">
                                        <button type="button" class="btn btn-primary" id="btn_search">查找</button>
                                    </div>
                                    <input type="hidden" name="pageNum" id="pageNum" value="1">
                                </form>
                                <div class="col-sm-6">
                                    <div align="right">
                                        <a class="btn btn-info btn-rounded" id="add_client_update">新增版本</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <table id="client_update_list" class="table table-striped table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>版本名称</th>
                                    <th>版本号</th>
                                    <th>更新描述</th>
                                    <th>平台类型</th>
                                    <th>用户类型</th>
                                    <th>创建时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                            <!-- 分页开始 -->
                            <div class="row">
                                <div class="span12">
                                    <div class="pull-right pagination">
                                        <ul id="pagination"></ul>
                                    </div>
                                </div>
                            </div>
                            <!-- 分页结束 -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <jsp:include page="/footer.jsp"/>
    </div>
    <!-- modal 添加 begin -->

    <div class="modal fade in" id="addClientModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">X</button>
                    <h4 class="modal-title" id="myModalLabel">新增版本</h4>
                </div>
                <form action="#" class="form-horizontal" id="add_client_form">
                    <div class="modal-body">
                        <input type="hidden" name="id">
                        <div class="form-group">
                            <label class="col-lg-3 control-label">平台类型<span class="required">*</span></label>
                            <div class="col-lg-8">
                                <select name="platformType" id="platformType" class="form-control">
                                    <option value="1">
                                        Android
                                    </option>
                                    <option value="2">
                                        PC
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">用户类型<span class="required">*</span></label>
                            <div class="col-lg-8">
                                <select name="userType" id="userType" class="form-control">
                                    <option value="1">
                                        车主版
                                    </option>
                                    <option value="2">
                                        专线版
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">版本名称<span class="required">*</span></label>
                            <div class="col-lg-8">
                                <input type="text" placeholder="请输入版本名称" class="form-control" name="versionName" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">版本号<span class="required">*</span></label>
                            <div class="col-lg-8">
                                <input type="text" placeholder="请输入版本号" class="form-control" name="versionCode" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 control-label">上传下载包<span class="required">*</span></label>
                            <div class="col-lg-8">

                                <input id="txtUrl" type="text" name="packageAddress" class="form-control" readonly />
                                <input class="uploadify" type="file" id="file" >

                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-lg-3 control-label">描述信息:</label>
                            <div class="col-lg-8">
                                <textarea class="form-control" rows="5" name="updateMessage" id="updateMessage"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary green" id="btn_add_client">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <!-- modal 添加 end -->
</div>
</div>
</body>
<script src="../../js/clientupdate/client_update_list.js"></script>
<script src="../../static/js/ajaxfileupload.js"></script>
<script src="../../static/js/uploadify/jquery.uploadify.min.js"></script>
